﻿

@using LeadThing.AbpZeroTemplate.Localization
@* 这里是通过ng的控制权去查找相对应的js信息。所有我们的没一个js文件就是单独的一个控制权。。。尼玛angular设计太爽了。。。 *@

<div ng-controller="common.views.articleCategorys.index as vm">
    <div class="row margin-bottom-5">
        <div class="col-xs-6">
            <div class="page-head">
                <div class="page-title">
                    <h1>
                        <span>@L("ArticleCategory")</span> <small>@L("ArticleCategoryHeaderInfo")</small>
                    </h1>
                </div>
            </div>
        </div>
        <div class="col-xs-6 text-right">
            <button class="btn blue" ng-click="vm.getPagedarticleCategorys()"><i class="fa fa-refresh"></i> @L("Refresh")</button>

            <button class="btn btn-default " ng-click="vm.exportToExcel()"><i class="fa fa-plus"></i>@L("ExportToExcel")</button>
            @*//判断是否拥有创建文章类别的权限*@
            <button ng-if="vm.permissions.create" class="btn btn-primary blue" ng-click="vm.createArticleCategory()"><i class="fa fa-plus"></i> @L("CreateArticleCategory")</button>
        </div>
    </div>
    <div class="portlet light margin-bottom-0">
        <div class="portlet-body">
            <div class="form">
                <form class="horizontal-form">
                    <div class="form-body" enter-key="vm.getPagedareas()">
                        <div class="row margin-bottom-10">
                            <div class="col-md-12">
                                <div class="inputs inputs-full-width">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div busy-if="vm.loading" class="row">
                <!-- 将配置传入指令中 -->
                <div id="AreaTree" class="col-sm-3"></div>
            </div>

        </div>
    </div>
</div>









